/* Search Container */
.search-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 12px;
  width: 280px;
  z-index: 1;
}

.search-container input[type="search"] {
  padding: 12px 40px 12px 16px;
  border-radius: 24px;
  border: 2px solid #0D6EFD;
  font-size: 15px;
  outline: none;
  width: 100%;
  transition: all 0.3s ease;
  background-color: #FFFFFF;
  color: #343A40;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.search-container input[type="search"]:focus {
  border-color: #084298;
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.2);
  transform: translateY(-1px);
}

.search-container button.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #0D6EFD;
  padding: 8px;
  user-select: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container button.search-btn:hover {
  color: #084298;
  transform: translateY(-50%) scale(1.1);
}

.search-error {
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 13px;
  color: #DC3545;
  font-weight: 600;
  min-height: 18px;
  opacity: 0;
  transition: all 0.3s ease;
  margin-top: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
  pointer-events: none;
}

.search-error.visible {
  opacity: 1;
  transform: translateY(2px);
}

/* Dark Mode Search Styles */
body.dark-mode .search-container input[type="search"] {
  background-color: #2d2d2d;
  color: #fff;
  border-color: #0D6EFD;
}

body.dark-mode .search-container .search-btn {
  color: #fff;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #F8F9FA;
  color: #343A40;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Navbar */
.navx {
  background-color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1); /* ظل أزرق فاتح */
  border-bottom: 1px solid #CCE5FF;
  font-weight: 600;
}

.navbar {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 40px;
}

.logo-container {
  flex-shrink: 0;
}

.logo-container img {
  height: 52px;
  margin-left: 10px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin-top: -8px;
}

.nav-links li a {
  text-decoration: none;
  color: #343A40;
  font-weight: 600;
  font-size: 17px;
  padding: 10px 0px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
  letter-spacing: 0.03em;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #0D6EFD; /* الأزرق الأساسي */
  transition: width 0.3s ease-in-out;
  border-radius: 4px;
}

.nav-links li a:hover::before {
  width: 80%;
}

.nav-links li a:hover {
  color: #0D6EFD;
  background-color: rgba(13, 110, 253, 0.1);
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.1);
}


a {
  color: #0080ca;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.content {
  flex: 1 1 45%;
}

.image-area {
  flex: 1 1 45%;
  text-align: center;
}

.image-area img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 128, 202, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-area img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px rgba(0, 128, 202, 0.3);
}

.main-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: #0077b6;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.description {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 90%;
}

.btn-link {
  background-color: #0077b6;
  color: #ffffff;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  text-align: center;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-link:hover {
  background-color: #005f99;
  transform: translateY(-3px);
}

a {
  color: #0077b6;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #005f99;
}

/* Container Layout */
.container {
  max-width: 1200px;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
  align-items: center;
  /* border-radius: 1.25rem; */
  justify-content: space-between;
}

.content {
  flex: 1 1 45%;
}

.image-area {
  flex: 1 1 45%;
  text-align: center;
}

.image-area img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 128, 202, 0.15);
  transition: transform 0.3s ease-in-out;
}

.image-area img:hover {
  transform: scale(1.03);
}

.main-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: 0080ca;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;

}

.description {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.btn-link {
  background-color: 0080ca;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  text-align: center;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 128, 202, 0.25);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-link:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

/* Terms Section */
.terms-wrapper {
  background-color: #ffffff;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 128, 202, 0.08);
}

.terms-wrapper header {
  text-align: center;
  margin-bottom: 2rem;
}

.terms-wrapper header h1 {
  color: 0080ca;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.terms-wrapper header p {
  color: #6c757d;
  font-size: 1rem;
}

.terms-wrapper section {
  background-color: #f1f5f9;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 128, 202, 0.06);
}

.terms-wrapper section h2 {
  color: #1d4ed8;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.terms-wrapper section ul li {
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  color: #343a40;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .btn-link {
    width: 100%;
  }

  .main-title {
    font-size: 2rem;
  }
}


a {
  color: 0080ca;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

/* Container Layout */
.container {
  background: linear-gradient(to bottom right, #ffffff, #f0f4f8);
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 128, 202, 0.12);
  transition: all 0.3s ease-in-out;
}

.content {
  flex: 1 1 45%;
  margin-left: 30px;
}

.image-area {
  flex: 1 1 45%;
  text-align: center;
}

.image-area img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 128, 202, 0.15);
  transition: transform 0.3s ease-in-out;
}

.image-area img:hover {
  transform: scale(1.03);
}

.main-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: 0080ca;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.description {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.btn-link {
  background-color: 0080ca;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  text-align: center;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 128, 202, 0.25);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-link:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  color: #fff !important;
}

/* Updated Terms Section Style */
.terms-wrapper {
  background: linear-gradient(to bottom right, #ffffff, #f0f4f8);
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 128, 202, 0.12);
  transition: all 0.3s ease-in-out;
}

.terms-wrapper > header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.terms-wrapper > header h1 {
  font-size: 28px;
  margin: 10px;
  color: #343A40;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.highlight {
  color: #0080ca;
}

.terms-wrapper > header p {
  color: #6C757D;
  font-size: 16px;
  margin-bottom: 50px;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.terms-wrapper section {
  background-color: #ffffff;
  margin-bottom: 1.75rem;
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 128, 202, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-wrapper section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 128, 202, 0.12);
}

.terms-wrapper section h2 {
  font-size: 1.75rem;
  color: #0080ca;
  margin-bottom: 1.2rem;
  position: relative;
  font-weight: 700;
}

.terms-wrapper section h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: #1d4ed8;
  border-radius: 4px;
}

.terms-wrapper section ul {
  list-style: none;
  padding-left: 0;
}

.terms-wrapper section ul li {
  background-color: #f8f9fa;
  margin-bottom: 0.85rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #0080ca;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #343a40;
  transition: background-color 0.3s ease;
}

.terms-wrapper section ul li:hover {
  background-color: #e9f5ff;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .btn-link {
    width: 100%;
  }

  .main-title {
    font-size: 2rem;
  }
}







/* ****dark mode **** */


    /* عام: إضافة انتقال بسيط للألوان والخلفيات */
    body, .container, .navx, .footer {
      transition: background-color 0.4s ease, color 0.4s ease;
    }
    /* انتقال على الشعارات */
    #logo, #navLogo {
      transition: opacity 0.3s ease;
    }

    .dark-mode-toggle {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 0;
      border: none;
      background: none;
      cursor: pointer;
      font-family: 'Roboto', sans-serif;
    }

    /* المسار البيضاوي */
    .dark-mode-toggle .slider {
      position: relative;
      width: 80px;
      height: 36px;
      background-color: #eee;
      border-radius: 18px;
      transition: background-color 0.3s ease;
      overflow: hidden;
    }

    /* المقبض الدائري */
    .dark-mode-toggle .slider::before {
      content: "";
      position: absolute;
      width: 32px;
      height: 32px;
      top: 2px;
      left: 2px;
      background-color: #fff;
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      transition: left 0.3s ease;
    }

    /* الأيقونة داخل المقبض */
    .dark-mode-toggle .slider i {
      position: absolute;
      top: 50%;
      left: 11px;
      transform: translateY(-50%);
      font-size: 16px;
      color: #666;
      transition: left 0.3s ease, color 0.3s ease;
    }

    /* نص التسمية */
    .switch-label {
      font-size: 1rem;
      color: #444;
      transition: color 0.4s ease;
    }

    /* الحالة المفعّلة */
    .dark-mode-toggle.active .slider {
      background-color: #4a4a5e;
    }

    .dark-mode-toggle.active .slider::before {
      left: 44px;
    }

    .dark-mode-toggle.active .slider i {
      left: 51px;
      color: #ffd700;
    }

    /* أنماط الـ dark-mode العامة */
    body.dark-mode {
      background-color: #1e1e2f;
      color: #e0e0e0;
    }

    body.dark-mode .container {
      background-color: #2a2a3d;
    }

    body.dark-mode .switch-label {
      color: #e0e0e0;
    }

    /* بقية أنماط الـ dark-mode */
    body.dark-mode .navx {
      background-color: #2c2c3c;
      border-bottom: 1px solid #444;
    }

    body.dark-mode .nav-links li a {
      color: #fff;
    }

    body.dark-mode .nav-links li a:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    body.dark-mode .search-container input[type="search"] {
      background-color: #3a3a4a;
      color: #fff;
      border: 1px solid #666;
    }

    body.dark-mode .search-container .search-btn {
      color: #fff;
    }

/* ********************************************** */


body.dark-mode .container  {
  background: none !important;
  background-color: rgb(42, 42, 61) !important;
}


body.dark-mode .container .content .main-title {
  color: #fff;
}

body.dark-mode .container .content .description{
  color: #ccc;
}


body.dark-mode .terms-wrapper {
  background: none !important;
  background-color: rgb(42, 42, 61) !important;
}

body.dark-mode .terms-wrapper header h1 {
  color: #fff;
}


body.dark-mode .terms-wrapper header p {
  color: #ccc;
}


/* داخل الأقسام */
body.dark-mode .terms-wrapper section {
  background-color: #1f1f2e !important;
  color: #ffffff !important;
  border-color: #333 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* العناوين */
body.dark-mode .terms-wrapper section h2 {
  color: 0080ca !important;
}

/* العناصر داخل الليست */
body.dark-mode .terms-wrapper section ul li {
  background-color: #fff !important;
  border-left: 4px solid 0080ca !important;
  color: #444 !important;
}

body.dark-mode .terms-wrapper section p {
    color: #ccc;
}


/* كلمة CodeCare المميزة */
body.dark-mode .terms-wrapper .highlight {
  color: 0080ca !important;
}


/* ********************************************** */


    body.dark-mode .footer {
      background-color: #222233;
      color: #ccc;
    }

    body.dark-mode .footer a {
      color: #aaa;
    }

    body.dark-mode .footer a:hover {
      color: #fff;
    }



/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #0D6EFD;
  user-select: none;
  padding: 4px 8px;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: #084298;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

.search-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 12px;
  width: 220px;
}

.search-container input[type="search"] {
  padding: 8px 36px 8px 12px;
  border-radius: 20px;
  border: 1.5px solid #0D6EFD;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #FFFFFF;
  color: #343A40;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.search-container input[type="search"]:focus {
  border-color: #084298;
  box-shadow: 0 0 6px #CCE5FF;
}

.search-container button.search-btn {
  position: absolute;
  right: 10px;
  top: 19px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #0D6EFD;
  user-select: none;
  transition: color 0.3s ease;
}

.search-container button.search-btn:hover {
  color: #084298;
}

.search-error {
  font-size: 13px;
  color: #DC3545; /* أحمر تنبيهي */
  font-weight: 600;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 6px;
}

.search-error.visible {
  opacity: 1;
}

/* Footer */
.footer {
  background-color: #152a3f;
  color: #FFFFFF;
  padding: 40px 0;
  font-size: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  margin-bottom: 15px;
  color: #FFFFFF;
  font-size: 18px;
  border-bottom: 2px solid #0D6EFD;
  display: inline-block;
  padding-bottom: 5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-column a {
  color: #CCE5FF;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-column a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.social a {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  color: #66B2FF;
}


.logo h1 {
  font-size: 32px;
  color: #343A40;
}

.logo .red {
  color: #DC3545;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin: 100px 40px 100px 40px;
    padding: 25px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* Toggle Button and Menu – Mobile Only */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

.nav-links{
  display: none !important;
}

  .mobile-only {
    display: block !important;
  }

  .mobile-menu-toggle {
    font-size: 28px;
    background: transparent;
    border: none;
    color: #2563EB;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(37, 99, 235, 0.1);
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
    border-radius: 10px;
    margin-top: 10px;
    padding: 12px;
    animation: fadeDown 0.3s ease-in-out;
  }

  .mobile-menu li {
    margin: 10px 0;
  }

  .mobile-menu li a {
    color: #0D6EFD;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
  }

  .mobile-menu li a:hover {
    text-decoration: underline;
  }

  @keyframes fadeDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.menu-toggle,
.mobile-only {
  display: block !important;
}


/* Side Menu (Mobile Only) */
.side-menu {
  position: fixed;
  top: 70px; /* تحت النافبار */
  right: -100%;
  width: 260px;
  background-color: #f9f9f9;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: right 0.4s ease;
  z-index: 9999;
  display: flex; /* مخفية افتراضًا */
  flex-direction: column;
  border-radius: 0 0 12px 12px;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu ul li {
  margin: 15px 0;
}

.side-menu ul li a {
  display: block;
  padding: 10px 15px;
  color: #0D6EFD;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.side-menu ul li a:hover,
.side-menu ul li a:focus {
  background-color: #e7f0ff;
  color: #0a58ca;
  box-shadow: inset 0 0 5px rgba(13, 110, 253, 0.2);
  outline: none;
}

/* Dark Mode Enhancements */
body.dark-mode .side-menu {
  background-color: #2c2c3c;
  box-shadow: -4px 0 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .side-menu ul li a {
  color: #ffffff;
}

body.dark-mode .side-menu ul li a:hover,
body.dark-mode .side-menu ul li a:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #90c6ff;
}


/* Show when active */
.side-menu.active {
  right: 0;
  display: flex;
}

/* Show only in mobile */
@media (min-width: 769px) {
  .side-menu {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 20px 0; /* تقليل البادينج العلوي والسفلي للفوتر */
  }

  #f1 {
    gap: 0px; 
    margin-top: 150px;
     margin-bottom: -140px; /* تقليل المسافة بين كل عمود والذي يليه */
  }

  #f2 {
    gap: 0px; 
    margin-bottom: -130px; /* تقليل المسافة بين كل عمود والذي يليه */
  }

    #f3 {
    margin-bottom: 50px; /* تقليل المسافة بين كل عمود والذي يليه */
  }

  .footer-column h3 {
    margin-bottom: 8px; /* تقليل المسافة تحت عنوان القسم */
    font-size: 16px; /* تصغير الخط شوية لو تحب */
  }

  .footer-column p,
  .footer-column a {
    margin-bottom: 6px; /* تقليل الفراغ بين الفقرات واللينكات */
    font-size: 14px;
  }

  .social a {
    margin-right: 6px;
    font-size: 14px;
  }
}


/* ********************* */





/* ********loading******** */

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: #f8f9fa; /* Light mode default */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.dark-mode .loading {
  background-color: #2C2C3C;
}

.loading.fade-out {
  opacity: 0;
  visibility: hidden;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heart svg {
  width: 120px;
  height: 120px;
}

.pulse {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: pulseMove 1.5s ease-in-out infinite;
}

@keyframes pulseMove {
  0% {
    stroke-dashoffset: 60;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 60;
  }
}

h1 {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  margin-top: 10px;
}

.white {
  color: #000;
}

body.dark-mode .white {
  color: #fff;
}

.blue {
  color: #007bff;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(to right, #ffffff, #f3faff);
  border-radius: 40px;
  box-shadow: 0 4px 14px rgba(0, 128, 202, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0f0ff;
}

.profile-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(to right, #e0f0ff, #ffffff);
  box-shadow: 0 6px 18px rgba(0, 128, 202, 0.2);
}

.profile-icon {
  width: 22px;
  height: 22px;
  transition: stroke 0.3s ease;
}

.profile-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

    .logout-btn {
      padding: 6px 12px;
      background-color: #dc3545;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
    }

.logout-btn:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  font-family: inherit;
}

.login-btn {
  background-color: transparent;
  color: #0080ca;
  border: 2px solid #0080ca;
}

.login-btn:hover {
  background-color: #0080ca;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 128, 202, 0.25);
}

.signup-btn {
  background-color: #0080ca;
  color: white;
  border: 2px solid #0080ca;
}

.signup-btn:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

body.dark-mode .profile-button {
  background: linear-gradient(to right, #2a2a2a, #1a1a1a);
  border-color: #444;
}

body.dark-mode .profile-button:hover {
  background: linear-gradient(to right, #3a3a3a, #2a2a2a);
}

body.dark-mode .profile-label {
  color: #e0e0e0;
}

body.dark-mode .profile-button:hover .profile-label {
  color: #90c6ff;
}

body.dark-mode .profile-icon {
  stroke: #66B2FF;
}

body.dark-mode .profile-button:hover .profile-icon {
  stroke: #90c6ff;
}
